package cn.edu.hbsi.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 单条新闻返回数据格式
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "单条新闻返回数据格式")
public class HeadlineVO
{
    @ApiModelProperty("新闻id")
    private Integer hid;

    @ApiModelProperty("新闻标题")
    private String title;

    @ApiModelProperty("新闻正文")
    private String article;

    @ApiModelProperty("新闻所属类别编号")
    private Integer type;

    @ApiModelProperty("新闻所属类别")
    private String typeName;

    @ApiModelProperty("新闻浏览量")
    private Integer pageViews;

    @ApiModelProperty("发布时间已过小时数")
    private Integer pastHours;

    @ApiModelProperty("发布用户ID")
    private Integer publisher;

    @ApiModelProperty("新闻作者")
    private String author;

    @ApiModelProperty("新闻的版本")
    private Integer version;
}
